﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPModels.Production.ProductionManagement
{
    /// <summary>
    /// 生产派单
    /// </summary>
    public class ProductionDispatch : Entity<int>
    {

        /// <summary>
        /// 生产工单编号
        /// </summary>
        public string OrderNumber { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        public string WorkstationName { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string GradingMatch { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 开始生产时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 完成生产时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 派单对象(操作员/班组)
        /// </summary>
        public string? Assignee { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 记录更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
